#include<bits/stdc++.h>
using namespace std;
int main()
{
	double a,b,c,d,f,x1,x2,s,xu;
	cin>>a>>b>>c;
	d=b*b;
	f=4*a*c;
	x1=(-b+sqrt(b*b-4*a*c))/(2*a);
	x2=(-b-sqrt(b*b-4*a*c))/(2*a);
	s=b/(2*a);
	xu=sqrt(4*a*c-b*b)/(2*a);
	if(d==f)
	printf("x1=x2=%.3f",x1);
	if(d>f)
	printf("x1=%.3f x2=%.3f",x1,x2);
	if(d<f)
	{
		if(s==0)
		printf("x1=%.3f+%.3fi x2=%.3f-%.3fi",s,xu,s,xu);
		else
		printf("x1=-%.3f+%.3fi x2=-%.3f-%.3fi",s,xu,s,xu);
	}
    return 0;
}
